<?
// go back once
function Alert_back( $string) {
	echo "<script  type=\"text/javascript\">
				window.alert('$string');
				history.go(-1)
			</script></body></html>";
	exit;
}

// go back as many as '$num' variable
function Alert_num( $string, $num) {
	echo "<script  type=\"text/javascript\">
				window.alert('$string');
				history.go(-$num)
			</script></body></html>";
	exit;
}

// move to index page
function Alert_index( $string ) {
	echo "<script type=\"text/javascript\">
				window.alert('$string');
				location.href=\"index.php\";
			</script></body></html>";
	exit;
}
?>